import request from '@/utils/request'
export default {
    //1 课程分类列表
    getSubjectList() {
        return request({
            url: '/eduservice/edu-subject/getAllSubject',
            method: 'get'
          })
    },
    //2 新增一级分类
    addOneSubject(title){
        return request({
            url: '/eduservice/edu-subject/addOneSubject/'+title,
            method: 'get',
        })
    },
    //3 新增二级分类
    addTwoSubject(subjectParentId,title){
        return request({
            url: '/eduservice/edu-subject/addTwoSubject/'+subjectParentId+'/'+title,
            method: 'get',
        })
    }
}
